<h1>Editing hub_widget</h1>

<%= error_messages_for :hub_widget %>

<% form_for(:hub_widget, @hub_widget, {:url => hub_hub_widget_url(@hub, @hub_widget), :html => {:method => :put}}) do |f| %>
  <p>
    <b>Widget</b><br />
    <%= f.collection_select :widget_id, Widget.find(:all), :id, :name %>
  </p>

  <p>
    <b>Size</b><br />
    <%= f.text_field :size %>
  </p>

  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Back', hub_hub_widgets_path(@hub) %>
